<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:url value="/registration" var="regUrl" />
<form method="POST" action="${regUrl }" class="form-horizontal"
	id="registerForm" onsubmit="return validateRegForm();">
	<div class="control-group">
		<label class="control-label" for="username">Felhasználói név:</label>
		<div class="controls">
			<input type="text" id="username" name="username"
				placeholder="Felhasználói név" autocomplete="off"
				value='<c:out value="${username }"/>'> <span
				class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="password">Jelszó:</label>
		<div class="controls">
			<input type="password" id="password" name="password"
				placeholder="Jelszó" autocomplete="off"
				onkeyup="validatePassword($('#password'));"> <span
				class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="lastname">Vezetéknév:</label>
		<div class="controls">
			<input type="text" id="lastname" name="lastname"
				placeholder="Vezetéknév" autocomplete="off"
				value='<c:out value="${lastname }"/>'><span
				class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="firstname">Keresztnév:</label>
		<div class="controls">
			<input type="text" id="firstname" name="firstname"
				placeholder="Keresztnév" autocomplete="off"
				value='<c:out value="${firstname }"/>'><span
				class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="city">Város:</label>
		<div class="controls">
			<jsp:include page="_citySelect.jsp">
				<jsp:param value="city" name="name"/>				
			</jsp:include>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="address">Cím:</label>
		<div class="controls">
			<input autocomplete="off" type="text" id="address" name="address"
				placeholder="Cím" value='<c:out value="${address }"/>'><span
				class="help-inline"></span>
		</div>
	</div>
	<c:if test="${empty param.isModal}">
		<div class="control-group">
			<div class="controls">
				<input type="submit" class="btn btn-primary" id="regSubmitButton"
					value="Regisztráció" />
			</div>
		</div>
	</c:if>
</form>
